Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep RNG seed file descriptor open until the RNG is freed. #7586

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kareem-wolfssl
Copy link
Contributor

@kareem-wolfssl kareem-wolfssl commented May 24, 2024

Description

Keep RNG seed file descriptor open until the RNG is freed.
Fixes #7197

Testing

Built in tests

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@kareem-wolfssl kareem-wolfssl self-assigned this May 24, 2024
Comment on lines 2034 to 2037
if(rng->seed.fd != -1) {
close(rng->seed.fd);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also reset rng->seed.fd = -1;?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, it should indeed. Fixed.

@kareem-wolfssl
Copy link
Contributor Author

Retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: [haproxy] blocking when using chroot + wolfssl
2 participants